import request from '@/config/axios'

export interface WageQuotationsConfirmedTaskVO {
  id: number
  taskNumber: string
  productNumber: string
  productName: string
  drawingNumber: string
  specification: string
  partName: string
  dictStatus: number
  creatorName: string
  partNumber: string
  orderQuantity: number
  partSpecification: string
  unitPrice: number
  processName: string
  planQuantity: number
  code: string
}

// 查询配置中心-工资考核-单价确认任务单列表
export const getWageQuotationsConfirmedTaskPage = async (params) => {
  return await request.get({ url: `/config/wage-quotations-confirmed-task/page`, params })
}

// 查询配置中心-工资考核-单价确认任务单详情
export const getWageQuotationsConfirmedTask = async (id: number) => {
  return await request.get({ url: `/config/wage-quotations-confirmed-task/get?id=` + id })
}

// 新增配置中心-工资考核-单价确认任务单
export const createWageQuotationsConfirmedTask = async (data: WageQuotationsConfirmedTaskVO) => {
  return await request.post({ url: `/config/wage-quotations-confirmed-task/create`, data })
}

// 修改配置中心-工资考核-单价确认任务单
export const updateWageQuotationsConfirmedTask = async (data) => {
  return await request.put({ url: `/config/wage-quotations-confirmed-task/update`, data })
}

// 删除配置中心-工资考核-单价确认任务单
export const deleteWageQuotationsConfirmedTask = async (id: number) => {
  return await request.delete({ url: `/config/wage-quotations-confirmed-task/delete?id=` + id })
}

// 导出配置中心-工资考核-单价确认任务单 Excel
export const exportWageQuotationsConfirmedTask = async (params) => {
  return await request.download({ url: `/config/wage-quotations-confirmed-task/export-excel`, params })
}
